package cn.bone.boot01.conf;

import cn.bone.boot01.service.HelloService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created by superbone on 2018/9/20.
 */
@Configuration
public class MyConfig {

    @Bean
    public HelloService helloService(){
        System.out.println("给容器中添加组件");
        return new HelloService();
    }
}
